-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🌱 Update release notes tool to handle multiples_areas and colons #12738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
🌱 Update release notes tool to handle multiples_areas and colons #12738
Conversation
hack/tools/release/notes/process.go
Outdated
return entry | ||
} | ||
|
||
// UpdateTitle updates a title by removing the "MULTIPLE_AREAS[]" substrings and multiple colons(:). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: When does the "multiple colon" case happen?
hack/tools/release/notes/process.go
Outdated
// UpdateTitle updates a title by removing the "MULTIPLE_AREAS[]" substrings and multiple colons(:). | ||
func updateTitle(input string) string { | ||
// Remove "MULTIPLE_AREAS[" from the input | ||
input = strings.Replace(input, "MULTIPLE_AREAS[", "", 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about simply not adding MULTIPLE_AREAS wherever we do that, so that we don't have to remove it here again?
Signed-off-by: chandankumar4 <[email protected]>
a32eaad
to
eecc038
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
} | ||
|
||
// UpdateTitle updates a title by removing the multiple colons(:). | ||
func updateTitle(input string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What cases are we fixing here? Let's please add unit test coverage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are these colons coming from? (would be good to have an example to understand why we need this)
What this PR does / why we need it:
MULTIPLE_AREAS
in the generated notesMULTIPLE_AREAS[KCP/CABPK]: Change envVars fields from []EnvVar to *[]EnvVar (#12539)
toKCP/CABPK: Change envVars fields from []EnvVar to *[]EnvVar (#12539)
Testing:Framework: Watch logs from init containers (#12208)
toTesting/Framework: Watch logs from init containers (#12208)
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes: #12280
/area release